import SvgIcon from '@/components/SvgIcon/index.vue' // 封装的svgIon组件


export default (vue: { component: (arg0: string, arg1: any) => void }) => {
  vue.component('svg-icon', SvgIcon)
  // 统一批量引入
  const req = require.context('./svg', false, /\.svg$/) // ./svg -> svg文件所在路径
  const requireAll = (requireContext: __WebpackModuleApi.RequireContext) => requireContext.keys().map(requireContext)
  requireAll(req)
}
